-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COMP: use sha512 instead of md5 hashes for ExternalData fetching #1237
Conversation
7f1ce05
to
a41d9b8
Compare
This is great @bcdarwin, thanks |
To clarify, I can't convert the remaining .md5 files since I don't have copies of the remaining files needed (which I can no longer download), so someone with a recent build needs to finish this or send me the build tree. |
Do you have a list of files you need? I'm not sure I have them but can take a look |
The data files (or just their sha512sums) corresponding to the following checksums:
|
Most likely not all of these are necessary for the default build, but at least some of them are. |
@ntustison @hjmjohnson is there an easy way to get at these files? I can't find a local copy |
They should be available on midas. Which MD5 files do you need? I probably have them cached on my local computer somewhere. |
@bcdarwin Is there a script used to do this conversion? |
Here's a Python script that can walk the ANTs source tree creating new checksum files:
|
I found a few of the missing files
|
a41d9b8
to
a19d604
Compare
@cookpa - thanks; I've updated the PR and the list of missing files above. |
Thank you @bcdarwin . I found some more in the Kitware ARCHIVEOBJECTS collection
|
…Kitware API change
a19d604
to
57ea2b5
Compare
@cookpa @hjmjohnson after incorporating the latest batch of file hashes the default build succeeds. Therefore I suggest you consider merging this PR as-is and fixing the remaining downloads listed above later. |
I think that's a good plan. I guess the other files were hosted on one of the test servers that were deprecated already? I can't find them at data.kitware.com or at www.itk.org. I don't know how to access files at slicer.kitware.com. |
Hello, experts! @cookpa @bcdarwin I have tried to change the hash md5 to sha512 as shown in 221dad7, but still failed in two files (the others seem worked well): Object SHA512=875b7adb24f8958648a4b6ec495dcf00, and Object SHA512=42cd2424c063ac3be1aa469ad4f1d2db. They are just the two files that you marked as Here is the complete error code: Object SHA512=42cd2424c063ac3be1aa469ad4f1d2db not found at:
Examples/TestSuite/CMakeFiles/ANTSFetchData.dir/build.make:328: recipe for target 'ExternalData/TestData/Initializer_0.05_antsRegistrationTest_SimilarityScaleNoMasks.mat-hash-stamp' failed Object SHA512=875b7adb24f8958648a4b6ec495dcf00 not found at:
Examples/TestSuite/CMakeFiles/ANTSFetchData.dir/build.make:321: recipe for target 'ExternalData/TestData/Initializer_0.05_antsRegistrationTest_SimilarityRotationNoMasks.mat-hash-stamp' failed |
@JayChang91 please open an issue using the issue template for build problems, and provide the full information about what you ran to get the above error. You can link to this PR by mentioning its number "#1237". |
Description
Not finished yet since I don't have all the files on my system in order to compute their hashes.
Fixes #1236 when complete.